package org.uim.cricket.storage.raise;

import org.uim.cricket.storage.raise.fetch.OrderedFetchList;
import org.uim.cricket.storage.raise.fetch.ResourceFetchable;

public abstract class InsertNewEntity {

	private OrderedFetchList resourceFetcher = null;
	
	public InsertNewEntity(OrderedFetchList rfetcher) {
		this.resourceFetcher = rfetcher;
	}
	
	public void setResourceFetcher(OrderedFetchList resourceFetcher) {
		this.resourceFetcher = resourceFetcher;
	}
	
	public OrderedFetchList getResourceFetcher() {
		return resourceFetcher;
	}
	
	public int getSize() {
		return this.resourceFetcher.getResourceFetchers().size();
	}
	
	public ResourceFetchable getFetcher(int index) {
		return this.resourceFetcher.getResourceFetchers().get(index);
	}
}
